RWTH - Mindstorms NXT Toolbox

MAP_GetUIModule

Reads the IO map of the user interface module

Contents

Syntax

map = MAP_GetUIModule()

Description

map = MAP_GetUIModule() returns the IO map of the user interface module. The return value map is a struct variable. It contains all user interface module information.

Output:

map.PMenu % ?

map.BatteryVoltage % battery voltage in mili volt.

map.LMSfilename % ?

map.Flags % flag bitfield

map.State % state value

map.Button % button value

map.RunState % VM run state

map.BatteryState % battery level (0..4)

map.BluetoothState % bluetooth state bitfield

map.UsbState % USB state

map.SleepTimout % sleep timeout value in minutes

map.SleepTimer % current sleep timer in minutes

map.Rechargeable % true if reachargeable battery is used

map.Volume % volume level (0..4)

map.Error % error value

map.OBPPointer % on brick program pointer

map.ForceOff % turn off brick if value is true

Examples

   map = MAP_GetUIModule();

See also

NXT_ReadIOMap

Signature